<?php
/**
 * ============================================================================
 * Copyright (c) 2015-2018 贵州大师兄信息技术有限公司 All rights reserved.
 * siteַ: http://www.dsxcms.com
 * ============================================================================
 * @author:     David Song<songdewei@163.com>
 * @version:    v1.0.0
 * ---------------------------------------------
 * Date: 2018/11/15
 * Time: 12:09 PM
 */

namespace App\Library\KdNiao\Request;


class KdEorderRequest extends KdRequest
{

    protected $params = [
        //快递公司编码
        'ShipperCode'=>'',
        //订单号
        'OrderCode'=>'',
        //邮费支付方式:1-现付，2-到付，3-月结，4-第三方支付(仅SF支持)
        'PayType'=>1,
        'ExpType'=>1,
        //收件人
        'Receiver'=>[
            'Company'=>'',
            'Name'=>'',
            'Tel'=>'',
            'Mobile'=>'',
            'PostCode'=>'',
            'ProvinceName'=>'',
            'CityName'=>'',
            'ExpAreaName'=>'',
            'Address'=>''
        ],
        'Sender'=>[
            'Company'=>'',
            'Name'=>'',
            'Tel'=>'',
            'Mobile'=>'',
            'PostCode'=>'',
            'ProvinceName'=>'',
            'CityName'=>'',
            'ExpAreaName'=>'',
            'Address'=>''
        ],
        'Quantity'=>1,
        'Commodity'=>[
            'GoodsName'=>'',
            'GoodsCode'=>'',
            'Goodsquantity'=>'',
            'GoodsPrice'=>'',
            'GoodsWeight'=>'',
            'GoodsDesc'=>'',
            'GoodsVol'=>''
        ]
    ];

    public function setShipperCode($value)
    {
        $this->params['ShipperCode'] = $value;
    }

    public function setOrderCode($value)
    {
        $this->params['OrderCode'] = $value;
    }

    public function setReceiver($value)
    {
        $this->params['Receiver'] = $value;
    }

    public function setSender($value)
    {
        $this->params['Sender'] = $value;
    }

    public function SetQuantity($value)
    {
        $this->params['Quantity'] = $value;
    }

    public function setCommodity($value)
    {
        $this->params['Commodity'] = $value;
    }
}
